import request from "../common/request.js"

const get = (id)=>{
	return request({
		url:"Location/GetOne",
		params:{id},
	})
}

const Add=(data)=>{
	return request({
		url:"Location/Add",
		method:"post",
		data
	})
}

const Update=(data)=>{
	return request({
		url:"Location/Update",
		method:"Put",
		data
	})
}

export default {
	get,
	Add,
	Update
}